<template>
  <div class="page" >
      axios 挂载全局及使用
  </div>
</template>

<script lang="ts" >
    import { defineComponent } from 'vue';
    import { axiosTest } from '@/api/index';
    export default defineComponent({
        name: "Ajax",
        setup() {
            return {

            }
        },
        created() {
            axiosTest().then((res)=>{
                console.log(res)
            })
        }
    })
</script>

<style>

</style>